SDEF
//
// The SINED declaration section
//
/*SINED Neutral_OneThumb (1 .5 0) (0 0 0) (0 0 0)
Greaseball.
*/
//
// The file declaration section
//
path models/worker
scale 1.3
normal one_t_02b.tga
damage one_t_02b.tga
worker_base.sbm

//
// Declare the animation types and files
//
worker_idle2.sam
worker_walk.sam
// Normal Animations
twitch2		worker_scratch.sam
twitch1      	worker_idle1.sam // sniffs his armpit
idle1        	worker_idle2.sam
death1       	worker_death1.sam
death2       	worker_death2.sam
death3       	worker_death3.sam
run1         	worker_run.sam
walk1        	worker_walk.sam
fire1         worker_attack1.sam
fire2         worker_attack2.sam
fire3         worker_attack3.sam
fire4         worker_attack4.sam
pain1        	worker_painlegright.sam

gibdeath_upper		worker_gibdeath1.SAM
gibdeath_lower		worker_gibdeath2.SAM

// Pain Location Based Animations
pain_torso_upper		worker_paintorsoupper.sam
pain_torso_lower		worker_paintorsolower.sam
pain_head			worker_painhead.SAM
pain_leg_right_upper		worker_painlegright.SAM
pain_leg_right_lower		worker_painlegright.SAM
pain_leg_left_upper		worker_painlegleft.SAM
pain_leg_left_lower		worker_painlegleft.SAM
pain_arm_right_upper		worker_painarmright.sam
pain_arm_right_lower		worker_painarmright.sam
pain_arm_left_upper		worker_painarmleft.sam
pain_arm_left_lower		worker_painarmleft.sam

// Death Location Based Animations

// Crouching Pain Location Based Animations

// Crouching Death Location Based Animations

// Optional Animations
// fix me
//push1		worker_push.sam

// Scripted Animations
worker_armsfolded.sam
worker_standstiff.sam

// Define model group areas
//
id   5 group head              flesh
group head damage              3.0
id  15 group torso_upper       fabric
group torso_upper damage       1.0
id  18 group torso_lower       fabric
group torso_lower damage       1.0
id  45 group leg_left_upper    fabric
group leg_left_upper damage    0.8
id  50 group leg_left_lower    fabric
group leg_left_lower damage    0.6
id  65 group leg_right_upper   fabric
group leg_right_upper damage   0.8
id  70 group leg_right_lower   fabric
group leg_right_lower damage   0.6
id  85 group arm_left_upper    flesh
group arm_left_upper damage    0.8
id  90 group arm_left_lower    flesh
group arm_left_lower damage    0.6
id 105 group arm_right_upper   flesh
group arm_right_upper damage   0.8
id 110 group arm_right_lower   flesh
group arm_right_lower damage   0.6
id 200 group arm_left_lower bone gun -20 270 60 2015attach flesh
id   3 group head bone hat 225 40 -50 2015attach flesh

//
// The initialization section
//
!init:
server classname actor
server setsize "-28 -28 0" "28 28 80"
server health 60
server painthreshold 16

// Sound Aliases
server aliascache snd_sightenemy1    "monsters/olworker/olsite1.wav" 1
server aliascache snd_sightenemy2    "monsters/olworker/olsite2.wav" 1
server aliascache snd_sightenemy3    "monsters/olworker/olsite3.wav" 1
server aliascache snd_sightenemy4    "monsters/olworker/olsite4.wav" 1
server aliascache snd_sightenemy5    "monsters/olworker/olsite5.wav" 1

//server aliascache snd_pursuit1  "monsters/olworker/wrkpurs1.wav" 1
//server aliascache snd_pursuit2  "monsters/olworker/wrkpurs2.wav" 1
//server aliascache snd_pursuit3  "monsters/olworker/wrkpurs3.wav" 1

server aliascache snd_lostweapon "monsters/olworker/olpain4.wav" 1

//
// CLIENT Initialization Commands
//

// Sound Aliases

client aliascache snd_pain1     "monsters/olworker/olpain1.wav" 1
client aliascache snd_pain2     "monsters/olworker/olpain2.wav" 1
client aliascache snd_pain3     "monsters/olworker/olpain3.wav" 1
client aliascache snd_pain4     "monsters/olworker/olpain4.wav" 1
client aliascache snd_pain5     "monsters/olworker/olpain5.wav" 1
client aliascache snd_death1    "monsters/olworker/oldeth1.wav" 1
client aliascache snd_death2    "monsters/olworker/oldeth2.wav" 1

client aliascache snd_kneefall1 "impact/bodyfall/big/sml1.wav" 1
client aliascache snd_kneefall2 "impact/bodyfall/big/sml2.wav" 1
client aliascache snd_partfall1 "impact/bodyfall/big/med1.wav" 1
client aliascache snd_partfall2 "impact/bodyfall/big/med2.wav" 1
client aliascache snd_partfall3 "impact/bodyfall/big/med3.wav" 1
client aliascache snd_bodyfall1 "impact/bodyfall/big/lrg1.wav" 1
client aliascache snd_bodyfall2 "impact/bodyfall/big/lrg2.wav" 1
client aliascache snd_limp1     "impact/bodyfall/big/drag1.wav" 1
client aliascache snd_whoosh1   "monsters/pinphat/pinmel1.wav" 1
client aliascache snd_whoosh2   "monsters/pinphat/pinmel1.wav" 1


//
// SHARED initialization commands
//

// Sound Aliases


// MAIN SECTION
//
!main:

// Normal Animations
server run1  3 movementsound
client run1  3 footstep
server run1  7 movementsound
client run1  7 footstep

server walk1  3 movementsound
client walk1  3 footstep
server walk1  9 movementsound
client walk1  9 footstep

server fire1 4 fire
server fire1 4 movementsound
client fire1 4 randomsound snd_whoosh 1 4
server fire1 7 movementsound
client fire1 7 footstep

server fire2 3 fire
server fire2 3 movementsound
client fire2 3 randomsound snd_whoosh 1 4
server fire2 5 movementsound
client fire2 5 footstep

server fire3 3 fire
server fire3 3 movementsound
client fire3 3 randomsound snd_whoosh 1 4
server fire3 5 movementsound
client fire3 5 footstep

server fire4 3 fire
server fire4 3 movementsound
client fire4 3 randomsound snd_whoosh 1 4
server fire4 3 movementsound
client fire4 3 footstep

server death1 first deathsound
client death1 first randomsound snd_death 1 2
server death1     4 movementsound
client death1     4 randomsound snd_bodyfall 1 4
server death1     4 movementsound
client death1     9 randomsound snd_kneefall 1 4

server death1 first deathsound
client death2 first randomsound snd_death 1 2
server death2     7 movementsound
client death2     7 randomsound snd_bodyfall 1 4
server death2    11 movementsound
client death2    11 randomsound snd_kneefall 1 4

server death3 first painsound
client death3 first randomsound snd_pain 1 2
server death3     4 movementsound
client death3     4 footstep
server death3     7 movementsound
client death3     7 footstep
server death3     8 deathsound
client death3     8 randomsound snd_death 1 2
server death3    12 movementsound
client death3    12 randomsound snd_bodyfall 1 4

// Pain Location Based Animations
server pain1 first deathsound
client pain1 first randomsound snd_pain 1 2
server pain1     2 movementsound
client pain1     2 randomsound snd_bodyfall 1 4

client pain_arm_left_lower first randomsound snd_pain 1 2
server pain_arm_left_lower first painsound
client pain_arm_left_lower 5 footstep
server pain_arm_left_lower 5 movementsound

client pain_arm_left_upper first randomsound snd_pain 1 2
server pain_arm_left_upper first painsound
client pain_arm_left_upper 5 footstep
server pain_arm_left_upper 5 movementsound

client pain_leg_left_lower first randomsound snd_pain 1 2
server pain_leg_left_lower first painsound
client pain_leg_left_lower 3 footstep
server pain_leg_left_lower 3 movementsound

client pain_leg_left_lower first randomsound snd_pain 1 2
server pain_leg_left_lower first painsound
client pain_leg_left_lower 4 footstep
server pain_leg_left_lower 4 movementsound

client pain_leg_right_lower first randomsound snd_pain 1 2
server pain_leg_right_lower first painsound
client pain_leg_right_lower 2 randomsound snd_bodyfall 1 4
server pain_leg_right_lower 2 movementsound

client pain_leg_right_upper first randomsound snd_pain 1 2
server pain_leg_right_upper first painsound
client pain_leg_right_upper 2 randomsound snd_bodyfall 1 4
server pain_leg_right_upper 2 movementsound

client pain_torso_lower first randomsound snd_pain 1 2
server pain_torso_lower first painsound
client pain_torso_lower 0 footstep
server pain_torso_lower 0 movementsound

client pain_torso_upper first randomsound snd_pain 1 2
server pain_torso_upper first painsound
client pain_torso_upper 0 footstep
server pain_torso_upper 0 movementsound




// Death Location Based Animations

// Crouching Pain Location Based Animations

// Crouching Death Location Based Animations

// Optional Animations
// fix me
//client push1 0 footstep
//server push1 0 movementsound
//client push1 6 footstep
//server push1 6 movementsound

// Scripted Animations
server gibdeath_upper first group head +nodraw
server gibdeath_upper first group torso_upper +nodraw
server gibdeath_upper first group arm_left_upper +nodraw
server gibdeath_upper first group arm_left_lower +nodraw
server gibdeath_upper first group arm_right_upper +nodraw
server gibdeath_upper first group arm_right_lower +nodraw

server gibdeath_upper first group torso_lower +skin1
server gibdeath_upper first group leg_left_upper +skin1
server gibdeath_upper first group leg_left_lower +skin1
server gibdeath_upper first group leg_right_upper +skin1
server gibdeath_upper first group leg_right_lower +skin1

server gibdeath_lower first group torso_lower +nodraw
server gibdeath_lower first group leg_left_upper +nodraw
server gibdeath_lower first group leg_left_lower +nodraw
server gibdeath_lower first group leg_right_upper +nodraw
server gibdeath_lower first group leg_right_lower +nodraw

server gibdeath_lower first group head +skin1
server gibdeath_lower first group torso_upper +skin1
server gibdeath_lower first group arm_left_upper +skin1
server gibdeath_lower first group arm_left_lower +skin1
server gibdeath_lower first group arm_right_upper +skin1
server gibdeath_lower first group arm_right_lower +skin1


